package com.wn.ticket.service.impl;

import com.wn.ticket.entity.Artist;
import com.wn.ticket.mapper.ArtistMapper;
import com.wn.ticket.service.ArtistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service

public class ArtistServiceImpl implements ArtistService {
    @Autowired
    private ArtistMapper artistMapper;
    @Override
    public List<Artist> getByFans() {
        return artistMapper.getByFans();
    }

    @Override
    public Artist getById(int id) {
        return artistMapper.getById(id);
    }

}
